Optimal. Leaf size=79 \[ \frac{\sqrt{\pi } \text{FresnelC}\left (\frac{2 \sqrt{\tan ^{-1}(a x)}}{\sqrt{\pi }}\right )}{8 a^2 c^2}-\frac{\sqrt{\tan ^{-1}(a x)}}{2 a^2 c^2 \left (a^2 x^2+1\right )}+\frac{\sqrt{\tan ^{-1}(a x)}}{4 a^2 c^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.120755, antiderivative size = 79, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.227, Rules used = {4930, 4904, 3312, 3304, 3352} \[ \frac{\sqrt{\pi } \text{FresnelC}\left (\frac{2 \sqrt{\tan ^{-1}(a x)}}{\sqrt{\pi }}\right )}{8 a^2 c^2}-\frac{\sqrt{\tan ^{-1}(a x)}}{2 a^2 c^2 \left (a^2 x^2+1\right )}+\frac{\sqrt{\tan ^{-1}(a x)}}{4 a^2 c^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4930
Rule 4904
Rule 3312
Rule 3304
Rule 3352
Rubi steps
\begin{align*} \int \frac{x \sqrt{\tan ^{-1}(a x)}}{\left (c+a^2 c x^2\right )^2} \, dx &=-\frac{\sqrt{\tan ^{-1}(a x)}}{2 a^2 c^2 \left (1+a^2 x^2\right )}+\frac{\int \frac{1}{\left (c+a^2 c x^2\right )^2 \sqrt{\tan ^{-1}(a x)}} \, dx}{4 a}\\ &=-\frac{\sqrt{\tan ^{-1}(a x)}}{2 a^2 c^2 \left (1+a^2 x^2\right )}+\frac{\operatorname{Subst}\left (\int \frac{\cos ^2(x)}{\sqrt{x}} \, dx,x,\tan ^{-1}(a x)\right )}{4 a^2 c^2}\\ &=-\frac{\sqrt{\tan ^{-1}(a x)}}{2 a^2 c^2 \left (1+a^2 x^2\right )}+\frac{\operatorname{Subst}\left (\int \left (\frac{1}{2 \sqrt{x}}+\frac{\cos (2 x)}{2 \sqrt{x}}\right ) \, dx,x,\tan ^{-1}(a x)\right )}{4 a^2 c^2}\\ &=\frac{\sqrt{\tan ^{-1}(a x)}}{4 a^2 c^2}-\frac{\sqrt{\tan ^{-1}(a x)}}{2 a^2 c^2 \left (1+a^2 x^2\right )}+\frac{\operatorname{Subst}\left (\int \frac{\cos (2 x)}{\sqrt{x}} \, dx,x,\tan ^{-1}(a x)\right )}{8 a^2 c^2}\\ &=\frac{\sqrt{\tan ^{-1}(a x)}}{4 a^2 c^2}-\frac{\sqrt{\tan ^{-1}(a x)}}{2 a^2 c^2 \left (1+a^2 x^2\right )}+\frac{\operatorname{Subst}\left (\int \cos \left (2 x^2\right ) \, dx,x,\sqrt{\tan ^{-1}(a x)}\right )}{4 a^2 c^2}\\ &=\frac{\sqrt{\tan ^{-1}(a x)}}{4 a^2 c^2}-\frac{\sqrt{\tan ^{-1}(a x)}}{2 a^2 c^2 \left (1+a^2 x^2\right )}+\frac{\sqrt{\pi } C\left (\frac{2 \sqrt{\tan ^{-1}(a x)}}{\sqrt{\pi }}\right )}{8 a^2 c^2}\\ \end{align*}
Mathematica [C] time = 0.280483, size = 136, normalized size = 1.72 \[ \frac{4 \sqrt{\pi } \text{FresnelC}\left (\frac{2 \sqrt{\tan ^{-1}(a x)}}{\sqrt{\pi }}\right )+\frac{-i \sqrt{2} \sqrt{-i \tan ^{-1}(a x)} \text{Gamma}\left (\frac{1}{2},-2 i \tan ^{-1}(a x)\right )+i \sqrt{2} \sqrt{i \tan ^{-1}(a x)} \text{Gamma}\left (\frac{1}{2},2 i \tan ^{-1}(a x)\right )+\frac{16 \left (a^2 x^2-1\right ) \tan ^{-1}(a x)}{a^2 x^2+1}}{\sqrt{\tan ^{-1}(a x)}}}{64 a^2 c^2} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.112, size = 46, normalized size = 0.6 \begin{align*} -{\frac{\cos \left ( 2\,\arctan \left ( ax \right ) \right ) }{4\,{a}^{2}{c}^{2}}\sqrt{\arctan \left ( ax \right ) }}+{\frac{\sqrt{\pi }}{8\,{a}^{2}{c}^{2}}{\it FresnelC} \left ( 2\,{\frac{\sqrt{\arctan \left ( ax \right ) }}{\sqrt{\pi }}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: RuntimeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: UnboundLocalError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{\int \frac{x \sqrt{\operatorname{atan}{\left (a x \right )}}}{a^{4} x^{4} + 2 a^{2} x^{2} + 1}\, dx}{c^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x \sqrt{\arctan \left (a x\right )}}{{\left (a^{2} c x^{2} + c\right )}^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]